Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore stream errors upon account successful account deletion and timeout during account creation #594

Merged

Conversation

melvo
Copy link
Contributor

@melvo melvo commented Nov 28, 2023

PR check list:

  • Document your code
  • Add \since QXmpp 1.X, QXMPP_EXPORT
  • Fix doxygen warnings (see log when building with -DBUILD_DOCUMENTATION=ON)
  • Update doc/doap.xml
  • Add unit tests
  • Format the code: Run clang-format -i src/<edited-file(s)> tests/<edited-file(s)>

Funded by NLnet via NGI Zero Entrust.

@melvo melvo force-pushed the fix/account-creation-deletion-errors branch from ed788ce to ad540bf Compare November 28, 2023 21:32
src/base/QXmppStanza.h Outdated Show resolved Hide resolved
@melvo melvo force-pushed the fix/account-creation-deletion-errors branch from ad540bf to aa4a8de Compare December 2, 2023 17:38
@lnjX lnjX force-pushed the master branch 10 times, most recently from 84168ac to e614dcc Compare February 4, 2024 20:17
@melvo melvo force-pushed the fix/account-creation-deletion-errors branch from aa4a8de to 10375af Compare February 7, 2024 15:50
@melvo melvo force-pushed the fix/account-creation-deletion-errors branch 6 times, most recently from b82efc3 to 80e6060 Compare September 8, 2024 16:30
src/base/QXmppGlobal.h Outdated Show resolved Hide resolved
@lnjX lnjX changed the title Fix account creation/deletion Ignore stream errors upon successful account deletion Sep 9, 2024
@melvo melvo changed the title Ignore stream errors upon successful account deletion Ignore stream errors upon account successful account deletion and timeout during account creation Sep 9, 2024
@melvo melvo force-pushed the fix/account-creation-deletion-errors branch from 80e6060 to 2c5cc3c Compare September 9, 2024 12:41
src/client/QXmppClient.h Outdated Show resolved Hide resolved
https://xmpp.org/extensions/xep-0077.html#usecases-cancel specifies the
usage of the stream error <not-authorized/>.
That is now handled as a valid response to the account deletion request
instead of a result IQ stanza or in addition to it.
The same applies to the stream error <conflict> since some servers send
that instead of the <not-authorized/> stream error.

There are servers closing the connection during account creation with a
<connection-timeout/> stream error.
That is now ignored.
@melvo melvo force-pushed the fix/account-creation-deletion-errors branch from 2c5cc3c to bbfa81a Compare September 9, 2024 19:42
@lnjX lnjX merged commit 1472e81 into qxmpp-project:master Sep 10, 2024
14 of 15 checks passed
@lnjX lnjX deleted the fix/account-creation-deletion-errors branch September 10, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants